<template>
	<view class="scroll">
		<scroll-view scroll-y class="listCss" @scrolltolower="loadmore" >
			<view>
				<slot></slot>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		name: "list-scroll",
		data() {
			return {

			};
		},
		methods:{
			loadmore(){
				console.log("上拉加载更多")
				this.$emit("loadmore")
			}
		}
	}
</script>

<style lang="scss">
	.scroll {
		flex: 1;
		overflow: hidden;
height: 100%;
		.listCss {
			height: 100%;
			display: flex;
			flex-direction: column;
		}
	}
</style>
